package com.sc.nft.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

@Data
public class MerchantProductUpdateDTO {

    @ApiModelProperty("产品id")
    @NotNull(message = "产品id不能为空")
    private Long id;

    @ApiModelProperty(value = "产品名称")
    @Length(min = 1, max = 10, message = "产品名称长度必须在1-10之间")
    @NotNull(message = "产品名称不能为空")
    private String name;

    @ApiModelProperty(value = "产品描述")
    @Length(min = 1, max = 100, message = "产品描述长度必须在1-100之间")
    private String description;

}
